package com.shxzz.easy12306.framework.starter.common.mq.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * 订单相关 RocketMQ 常量
 * @author shxzz
 * @create 2024-03-10-19:54
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class OrderRocketMQConstant {

    /**
     * 延迟关闭订单 Topic
     */
    public static final String DELAY_CLOSE_ORDER_TOPIC = "easy12306_order-service_delay-close-order_topic";

    /**
     * 延迟关闭订单 Tag
     */
    public static final String DELAY_CLOSE_ORDER_TAG = "easy12306_order-service_delay-close-order_tag";

    /**
     * 支付回调 Topic
     */
    public static final String PAY_CALLBACK_ORDER_TOPIC = "easy12306_pay-service_pay-callback-order_topic";

    /**
     * 支付回调 Tag
     */
    public static final String PAY_CALLBACK_ORDER_TAG = "easy12306_order-service_pay-callback-order_tag";

    /**
     * 退款回调 Topic
     */
    public static final String REFUND_CALLBACK_ORDER_TOPIC = "easy12306_pay-service_refund-callback-order_topic";

    /**
     * 退款回调订单 Tag
     */
    public static final String REFUND_CALLBACK_ORDER_TAG = "easy12306_order-service_refund-callback-order_tag";

    /**
     * canal binlog Topic
     */
    public static final String CANAL_BINLOG_TOPIC = "canal_topic";

    /**
     * 延迟 10min 消息级别 RocketMQ 延迟消息级别 1s 5s 10s 30s 1m 2m 3m 4m 5m 6m 7m 8m 9m 10m 20m 30m 1h 2h
     */
    public static final Integer DELAY_10_MIN_MESSAGE_LEVEL = 14;

    /**
     * 延迟级别 立即发送
     */
    public static final Integer NO_DELAY_MESSAGE_LEVEL = 0;


}
